package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_lc_shipping_address")
public class LcShippingAddressDo extends Model<LcShippingAddressDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("channel_id")
    private Long channelId;

    /**
     * 仓库
     */
    @TableField("storage_id")
    private Long storageId;

    /**
     * 地址名称
     */
    @TableField("address_name")
    private String addressName;

    /**
     * 发件人
     */
    @TableField("sender")
    private String sender;

    /**
     * 电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 公司名称
     */
    @TableField("company_name")
    private String companyName;

    /**
     * 国家地区
     */
    @TableField("country")
    private String country;

    /**
     * 国家地区编码
     */
    @TableField("country_code")
    private String countryCode;

    /**
     * 省/州
     */
    @TableField("state")
    private String state;

    /**
     * 城市
     */
    @TableField("city")
    private String city;

    /**
     * 邮编
     */
    @TableField("postal_code")
    private String postalCode;

    /**
     * 门牌号
     */
    @TableField("house_number")
    private String houseNumber;

    /**
     * 服务商地址编码
     */
    @TableField("address_code")
    private String addressCode;

    /**
     * 地址1
     */
    @TableField("street1")
    private String street1;

    /**
     * 地址2
     */
    @TableField("street2")
    private String street2;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
